package com.zzyl.mapper;

import com.zzyl.dto.NursingProjectPlanDto;
import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingProjectPlanVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {

    @Select("select * from nursing_project_plan where project_id = #{id}")
    List<NursingProjectPlan> getByProjectId(Long id);

    void insert(NursingProjectPlan projectPlan);


    List<NursingProjectPlanVo> getByPlanId(Long id);

    @Delete("delete from nursing_project_plan where plan_id = #{planId}")
    void deleteByPlanId(Long planId);


}
